import request from '@/utils/request'
/**
 *
 * @param {current,pageSize} data
 * article列表数据
 */
export const getArticleList = (data) => {
  return request.get('/admin/interview/query', { params: data })
}
/**
 *
 * @param {Content,stem} data
 * @returns 添加好的新列表
 */
export const addArticleList = (data) => {
  return request.post('/admin/interview/create', data)
}
/**
 *
 * @param {对应的一列id值} id
 * @returns 新的删除的数据
 */
export const removeArticleList = id => {
  return request.delete('/admin/interview/remove', {
    data: {
      id
    }
  })
}
export const getArticleListDetail = id => {
  return request.get(`/admin/interview/show?id=${id}`)
}
/**
 *
 * @param {id,stem,content} data
 * @returns 编辑好的列表数据
 */
export const updateArticleListDetail = (data) => {
  return request.put('/admin/interview/update', data)
}
